﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Mappings;

namespace Apollo
{
    [NHibernateEntity(Table = "apl_MenuItemAccess")]
    public class MenuItemAccess
    {
        public MenuItemAccess() { }

        [PrimaryKey]
        public virtual int Id { get; set; }

        [BelongsTo(Column = "ID_MenuItem")]
        public virtual MenuItem MenuItem { get; set; }

        [Property]
        public virtual bool Enabled { get; set; }

        [BelongsTo(Column = "ID_Role")]
        public virtual Role Role { get; set; }

        [BelongsTo(Column = "ID_Position")]
        public virtual Position Position { get; set; }
    }
}
